<!-- /* Description for file.
 * 上班时间
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/systemconfigs
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张朋2011年0701
 * @lastmodified  张海杰2011年0713
 */
 -->
 <?php
echo $javascript->link('jquery');
?> 
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Systemconfigs');//一级目录
										   echo '>';echo __('Personal Office');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('workdates',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="tabflex">
  <?php echo $form->create('Systemconfigs',array('action'=>'updateworkdates','type'=> 'post'));?>
	<fieldset>
 		<legend><?php __('workdates');//上班时间?></legend>
	<?php for ($index = 0;$index<count($workdates);$index++) {
		$weekday=$workdates[$index]['workdates']['weekday'];
		$iswork=$workdates[$index]['workdates']['iswork'];
		$str="$weekday:<input type='checkbox' name='weekday[]' value='$weekday' ";
		if($iswork==1)
		{
			$str.="checked=checked";
		}
		$str.="></input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
		echo "&nbsp;&nbsp;".$str;
	}?>
	<!--<input type="text" name="starthour" value="<?php echo $worktimes[0]['worktimes']['starthour']?>"></input>:
	<input type="text" name="startminute" value="<?php echo $worktimes[0]['worktimes']['startminute']?>"></input>
	-<input type="text" name="endhour" value="<?php echo $worktimes[0]['worktimes']['endhour']?>"></input>
	:<input type="text" name="endminute" value="<?php echo $worktimes[0]['worktimes']['endminute']?>"></input>
	
	-->
	<select name="starthour" style="width:40px;">
	<?php for ($i=1;$i<=23;$i++) {
		$op="";
		if($i<10)
		{
			$op="0".$i;
		}
		else
		{
			$op=$i;
		}
		if ($op==$worktimes[0]['worktimes']['starthour']) {
			echo "<option value='$op' selected=selected>$op</option>";
		}
		else
		{
			echo "<option value='$op'>$op</option>";
		}
	}?>
	</select>：
	<select name="startminute" style="width:40px;">
	<?php for ($i=0;$i<=59;$i++) {
		$op="";
		if($i<10)
		{
			$op="0".$i;
		}
		else
		{
			$op=$i;
		}
		if ($op==$worktimes[0]['worktimes']['startminute']) {
			echo "<option value='$op' selected=selected>$op</option>";
		}
		else
		{
			echo "<option value='$op'>$op</option>";
		}
	}?>
	</select>-
	<select name="endhour" style="width:40px;">
	<?php for ($i=0;$i<=23;$i++) {
		$op="";
		if($i<10)
		{
			$op="0".$i;
		}
		else
		{
			$op=$i;
		}
		if ($op==$worktimes[0]['worktimes']['endhour']) {
			echo "<option value='$op' selected=selected>$op</option>";
		}
		else
		{
			echo "<option value='$op'>$op</option>";
		}
	}?>
	</select>：
	<select name="endminute" style="width:40px;">
	<?php for ($i=0;$i<=59;$i++) {
		$op="";
		if($i<10)
		{
			$op="0".$i;
		}
		else
		{
			$op=$i;
		}
		if ($op==$worktimes[0]['worktimes']['endminute']) {
			echo "<option value='$op' selected=selected>$op</option>";
		}
		else
		{
			echo "<option value='$op'>$op</option>";
		}
	}?>
	</select>
	</fieldset>
	<?php echo $form->button('确定',array('type'=>'submit','class'=>'oksubmit',"class"=>"btn2"))?>
	<?php echo $form->button('重置',array('type'=>'reset','class'=>'resetsubmit',"class"=>"btn2"))?>
	<?php echo $form->end();?>
</div>
